package com.king.pattem.future.jdk;

import java.util.concurrent.Callable;

/**
 * @author taomk
 * @version 1.0
 * @since 15-1-30 下午10:08
 */
public class RealData implements Callable<String> {

	protected String para;

	public RealData(String para) {
		this.para = para;
	}

	@Override
	public String call() throws Exception {
		StringBuffer sb = new StringBuffer();
		try {
			for (int i = 0; i < 10; i++) {
				sb.append(para);
				Thread.sleep(100);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}

		return sb.toString();
	}
}
